//
//  IMMessageBar.h
//  IMMessageBarExample
//
//  Created by shscce on 15/8/17.
//  Copyright (c) 2015年 xmfraker. All rights reserved.
//


#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>

@class  IMMessageBar;

/// 代理事件,发送图片,地理位置,文字,语音信息等
@protocol IMMessageBarDelegate <NSObject>

@optional
/// 发送文字信息
- (void)chatBar:(IMMessageBar *)chatBar sendMessage:(NSString *)message;

/// 发送图片
- (void)chatBar:(IMMessageBar *)chatBar sendPictures:(NSArray *)pictures;

/// 发送地理位置信息
///
/// @param locationCoordinate 经纬度
/// @param locationText       地址位置对应信息
- (void)chatBar:(IMMessageBar *)chatBar sendLocation:(CLLocationCoordinate2D)locationCoordinate locationText:(NSString *)locationText;

/// 发送语音信息
///
/// @param voiceFileName 语音data数据
/// @param seconds       语音时长
- (void)chatBar:(IMMessageBar *)chatBar sendVoice:(NSString *)voiceFileName seconds:(NSTimeInterval)seconds;

@end


@interface IMMessageBar : UIView

@property (assign, nonatomic) CGFloat superViewHeight;

@property (weak, nonatomic) id<IMMessageBarDelegate> delegate;

@end
